package com.xian.serviceimpl;


import java.util.List;

import com.xian.dao.CategoryDao;
import com.xian.domain.Category;
import com.xian.domain.Greens;
import com.xian.domain.Order;
import com.xian.service.CategoryService;

public class CategoryServiceImpl implements CategoryService {
   CategoryDao categoryDao;

public CategoryDao getCategoryDao() {
	return categoryDao;
}

public void setCategoryDao(CategoryDao categoryDao) {
	this.categoryDao = categoryDao;
}

@Override
public void addupCategory(Category category) {
	categoryDao.addupCategory(category);
	
}

@Override
public List<Greens> findCategoryPage(int pages) {
	// TODO Auto-generated method stub
	return categoryDao.findCategoryPage(pages);
}

@Override
public int findCategorycount() {
	// TODO Auto-generated method stub
	return categoryDao.findCategorycount();
}

@Override
public List<Category> findCategorySort(String hql) {
	// TODO Auto-generated method stub
	return categoryDao.findCategorySort(hql);
}

@Override
public void updateCategory(Category category) {
	// TODO Auto-generated method stub
	categoryDao.updateCategory(category);
}

@Override
public void deleteCategory(Category category) {
	// TODO Auto-generated method stub
	categoryDao.deleteCategory(category);
}
 
}
